﻿using ProTrack.Dto;
using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.ReturnOrder
{
    public  interface IOrderReturnServices
    {
        public Task<IEnumerable<OrderReturn>>GetAllAsync();
        public Task<IEnumerable<OrderReturn>> GetAsync(int PageIndex, int PageSize, string Number, string CustomerNumber,  string WarehouseId, string OrderSalesExWarehouseId);

        public Task<int>GetCountAsync(string Number, string CustomerNumber, string WarehouseId, string OrderSalesExWarehouseId);
        public Task<IEnumerable<OrderReturnItemDto>> GetOrderReturnbyIdAsync(string OrderReturnId, string WareHouseId);


        public Task<bool> AddAsync(OrderReturn model,List<OrderReturnItem> list);
        public Task<bool> UpdateAsync(OrderReturn model,List<OrderReturnItem> list);
        public Task<bool> DeleteAsync(int[] Ids);


        public Task<bool> UpdatStatus(long Id, int Status);



    }
}
